Skip to content

Conversation

@Howchie
Copy link

@Howchie Howchie commented Jan 10, 2025

I've modified the file to address a few key issues. It now adds the author display name to files when an author is selected using the --author argument. I removed the duplicate folder check UNLESS an author is not specified (it still checks duplicate filenames). I removed a category check that limited the packs that were found, expanding the scope of the downloadable packs. I also added some better error handling for the reported cases where things don't work. It still won't download them, but it will keep looking for other packs instead of quitting. By default I've also set duration to be a list of 1 to 30 mins but I it will still function as previous if you manually use a fixed duration argument. There were also some packs that had problematic filenames (at least for windows) so I added a sanitize_filename code as well to strip things like colons and question marks.

I don't know how to do pull requests and stuff but I've modified the file to address a few key issues. First, it now adds the author display name to files when an author is selected, and allows you to download more than one author (it skips the duplicate folder check, but still checks for filename duplicates). I removed a category check that limited the packs that were found. I also added some better error handling for the reported cases where things don't work. It still won't download them, but it will keep looking for other packs. By default I've also set duration to be a list of all possible durations but I think it will still function as previous if you manually use a fixed duration argument. There were also some packs that had problematic filenames (at least for windows) so I added a sanitize_filename code as well to strip things like colons and question marks.
@JonasAndrich
Copy link

yay filename sanitatizion sounds awesome. Then things as
"Künstler Playlist: Hans Zimmer"
https://my.headspace.com/modes/focus/content/913
can be handled.
Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants